//
//  CLHomeViewTransition.h
//  shortrent
//
//  Created by Leo on 2018/5/18.
//  Copyright © 2018年 mayi. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^CLCloseTransitionBlock)(void);    // 关闭动画block
typedef void(^CLBeginTransitionBlock)(id);      // 开始动画block
#define CLCollectionViewCellImageViewTag 100000

@interface CLHomeViewTransition : NSObject

/**
 房源到房源详情的过渡动画

 @param fromViewController 当前viewController
 @param toViewController 将要进入的下一个页面
 @param indexPath 点击的collectionview 的 indexPath
 @param collectionView 点击的collectionview
 @param completion 进入动画执行完毕后的block
 @return 返回关闭动画的block
 */
- (CLBeginTransitionBlock)transitionFromViewController:(UIViewController *)fromViewController
                                toViewController:(UIViewController *)toViewController
                               selectedIndexPath:(NSIndexPath *)indexPath
                                  collectionView:(UICollectionView *)collectionView
                                      completion:(CLCloseTransitionBlock)completion;
@end
